package hub.cathome.mapper;

import hub.cathome.entity.Like;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import java.util.List;
@Component("likeMapper")
public interface LikeMapper {
    int insertLike(Like like);
    int deleteLike(Integer id);
    Like getLikeById(Integer id);
    List<Like> getLikeByShotBlogId(Integer shotBlogId);
    Like getLikeByShotBlogIdAndUserId(@Param("blogId") Integer shotBlogId,@Param("userId") Integer userId);
    List<Integer> getLikeIdByUserId(Integer userId);
    List<Integer> getLikeIdByShotBlogId(Integer shotBlogId);
    List<Like> getAllLike();
}
